Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

135
Vistas
How to use Regex and javascript to replace only strings between two pipes ||

I'm trying to create an HTML table using javascript from a String that I will get from a database. the data is a wiki table like the example I will leave below:

||Information Communicated||who||when||Complete|||aa|aa|aa|aa|

I've tried using this regex expression: [^|]*\||(\w+)\||

but it's selecting all pipes. I want to get the double pipe with the string between the first || and last || which means in this case

||Information Communicated||who||when||Complete||

I don't know what is missing but please help me

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda